<template>
  <div>
    <el-drawer title="招标公告信息" size="95%" :visible.sync="drawer" direction="ttb" :before-close="handleClose">
      <el-card class="box-card">
        <div class="noticeTitle">
          {{ formdata.noticeTitle }}
          <div></div>
          <div>
            <div class="titlebottomCls">
              <div>
                <span> 公告类型：</span><span>{{ text }}</span>
              </div>
              <div>
                <span>发布主体：</span><span>{{ formdata.agentOrganizationName }}</span>
              </div>
              <div>
                <span>发布时间：</span><span>{{ formdata.updateDatetime }}</span>
              </div>
            </div>
          </div>
        </div>
        <div v-html="formdata.noticeContent" class="mian"></div>
        <div style="text-align: center;">
            <el-button type="primary" @click="drawer=false">关闭</el-button>
        </div>
      </el-card>
    </el-drawer>
  </div>
</template>
<script>
export default {
  name: 'CityStateWebsiteNoticeDilaog',

  data() {
    return {
      drawer: false,
      formdata: {
        agentOrganizationName: '',
        updateDatetime: '',
        noticeTitle: ''
      },
      text:''
    }
  },

  mounted() {},

  methods: {
    handleClose(){
        this.formdata={
            agentOrganizationName: '',
        updateDatetime: '',
        noticeTitle: ''
        }
        this.text=''
        this.drawer=false
    }
  }
}
</script>
<style lang="scss" scoped>
.noticeTitle {
  font-size: 24px;
  border-bottom: 2px solid #3a75fe;
  padding-bottom: 20px;
  text-align: center;
  height: 100%;
  .titlebottomCls {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    div {
      margin-left: 30px;
      display: inline-block;
    }
  }
}
.mian{
    min-height: 500px;
}
</style>
